<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录页面</title>
</head>
<script language="javascript">  
function isValid(form)  
{  
if (form.username.value=="")  
 {  
 alert("用户名不能为空");  
 return false;  
 }   
else  if (form.pwd.value=="")  
{  
alert("用户密码不能为空！");  
return false;  
}  
else return true;  
}  
</script>  
<body>
    <center>
  	<font face="楷体" size="6" color="#000" >登录界面</font>
  	
  	<form action = "checkLogin.jsp" method="post" onSubmit="return isValid(this);" >
      <table width="300" height = "180" border="5" bordercolor="#A0A0A0"> 
 		<tr>
 		  <th>账  户：</th>
 		  <td><input type="text" name="username" ></td>
 	    </tr>
 	    <tr>
 		  <th>密  码：</th>
 		  <td><input type="password" name="pwd" ></td>
 	    </tr>
 	    <tr>
 	      <td colspan = "2" align = "center">
 		    <input type="submit" name="submit" value="登       录">
 		    <input type="button" value="返       回"
 			  onclick = "window.location.href('index.jsp')">
 	      </td>
 	    </tr>
 	  </table>
 	</form>
  </center>
  </body>
</html>